package com.ruoyi.publish.domain;

import com.ruoyi.common.annotation.ExcelField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出版单位管理对象 identify_publishing_unit
 *
 * @author 张泽望
 * @date 2020-11-03
 */
public class IdPublish extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 单位名称
     */
    @Excel(name = "单位名称", type = Excel.Type.ALL)
    private String companyName;

    /**
     * 备用字段1
     */
    @Excel(name = "单位类型", type = Excel.Type.ALL, dictType = "re_unit_type")
    private String by1;

    /**
     * 主管单位
     */
    @Excel(name = "主管单位", type = Excel.Type.ALL)
    private String competentUnit;

    /**
     * 主办单位
     */
    @Excel(name = "主办单位", type = Excel.Type.ALL)
    private String organizers;

    /**
     * 总编姓名
     */
    @Excel(name = "总编姓名", type = Excel.Type.ALL)
    private String editorChief;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话", type = Excel.Type.ALL)
    private String telephone;

    /**
     * 电子邮件
     */
    @Excel(name = "电子邮件", type = Excel.Type.ALL)
    private String email;

    /**
     * 审读联系人
     */
    @Excel(name = "审读联系人", type = Excel.Type.ALL)
    private String reviewer;

    /**
     * 电子邮件
     */
    @Excel(name = "单位地址", type = Excel.Type.ALL)
    private String address;

    /**
     * 其他说明
     */
    @Excel(name = "其他说明", type = Excel.Type.ALL)
    private String instructions;


    /**
     * 备用字段2
     */
    //@Excel(name = "备用字段2")
    private String by2;

    /**
     * 备用字段3
     */
    //@Excel(name = "备用字段3")
    private String by3;

    /**
     * 导出的id集合
     */
    private String exportIds;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @ExcelField(required = ExcelField.ExcelRequired.must, filedName = "单位名称")
    public String getCompanyName() {
        return companyName;
    }

    public void setCompetentUnit(String competentUnit) {
        this.competentUnit = competentUnit;
    }

    @ExcelField(required = ExcelField.ExcelRequired.must, filedName = "主管单位")
    public String getCompetentUnit() {
        return competentUnit;
    }

    public void setOrganizers(String organizers) {
        this.organizers = organizers;
    }

    @ExcelField(required = ExcelField.ExcelRequired.no, filedName = "主办单位")
    public String getOrganizers() {
        return organizers;
    }

    public void setEditorChief(String editorChief) {
        this.editorChief = editorChief;
    }

    @ExcelField(required = ExcelField.ExcelRequired.no, filedName = "总编姓名")
    public String getEditorChief() {
        return editorChief;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    @ExcelField(required = ExcelField.ExcelRequired.must, filedName = "联系电话")
    public String getTelephone() {
        return telephone;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @ExcelField(required = ExcelField.ExcelRequired.must, filedName = "电子邮件")
    public String getEmail() {
        return email;
    }

    public void setReviewer(String reviewer) {
        this.reviewer = reviewer;
    }

    @ExcelField(required = ExcelField.ExcelRequired.must, filedName = "审读联系人")
    public String getReviewer() {
        return reviewer;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @ExcelField(required = ExcelField.ExcelRequired.no, filedName = "单位地址")
    public String getAddress() {
        return address;
    }

    public void setInstructions(String instructions) {
        this.instructions = instructions;
    }

    @ExcelField(required = ExcelField.ExcelRequired.no, filedName = "其他说明")
    public String getInstructions() {
        return instructions;
    }

    public void setBy1(String by1) {
        this.by1 = by1;
    }

    @ExcelField(required = ExcelField.ExcelRequired.must, filedName = "单位类型")
    public String getBy1() {
        return by1;
    }

    public void setBy2(String by2) {
        this.by2 = by2;
    }

    public String getBy2() {
        return by2;
    }

    public void setBy3(String by3) {
        this.by3 = by3;
    }

    public String getBy3() {
        return by3;
    }

    public String getExportIds() {
        return exportIds;
    }

    public void setExportIds(String exportIds) {
        this.exportIds = exportIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("companyName", getCompanyName())
                .append("competentUnit", getCompetentUnit())
                .append("organizers", getOrganizers())
                .append("editorChief", getEditorChief())
                .append("telephone", getTelephone())
                .append("email", getEmail())
                .append("reviewer", getReviewer())
                .append("Address", getAddress())
                .append("instructions", getInstructions())
                .append("by1", getBy1())
                .append("by2", getBy2())
                .append("by3", getBy3())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
